package czy.demo.dubbo.provider.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import czy.demo.dubbo.base.pojo.User;
import czy.demo.dubbo.base.service.UserService;
import org.springframework.stereotype.Component;


/* 使用dubbo的Service注解 */
@Service
@Component
public class UserServiceImpl implements UserService {

    @Override
    public User findById(Integer id) {
        return new User(id,"无名"+id,23+id);
    }
}
